package com.tencent.txcc.dto;

import com.tencent.txcc.util.AssertUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PhoneRegisterDto {
    @Pattern(regexp = AssertUtil.PHONE_FORMAT, message = "手机格式不正确")
    private String mobile; //'18244444444',

    @Size(min = 6, max = 12, message = "密码必须在6-12位之间")
    private String password; //'123456',

    @NotNull
    private String smsCode; //'',

    private String code;

    @NotNull
    private Integer regChannel; //1 //注册的渠道
}
